<script>
  $jq(document).ready(PeopleMedia.Connect.initViews('Sent'));
</script>    
<div class="yescontent">

  <div class="yescontenttoprow">
    <p class="results"><span id="viewCount"><?php echo count($totalUserView); ?> Results</span></p>
    <div id="paginationalone" class="color-main">
      <div id="paginationViewsTop">
        <?php echo $data['pagination']['html']; ?>

      </div>
    </div>
    <div class="toprowfloatright">
      <div class="listpagelinksarea">
        <div id="listViewsSent" onclick="PeopleMedia.Connect.goToViewsSent();" class="listpagelinksarea3 listpagelinksarea3on">
          <p><a href="javascript:;">I Viewed</a></p>
        </div>
        <!--
        <div class="tooltipwrapper">
          <div id="viewedme" class="tooltip" style="">
            <div class="tooltipclose" onclick="PeopleMedia.Connect.hideViewPopUp();">
              <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/mediumclosebtn.png">
            </div>
            <div class="box shadow border-color-main">
              <div class="tooltipleft color-icon">1</div>
              <div class="tooltipright">member viewed your<br>profile. <span class="color-main" onclick="PeopleMedia.Connect.goToViewsReceived();">Find out who!</span></div>
            </div>
            <div class="arrowarea">
              <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/arrowdown_small.png">
            </div>
          </div>
        </div>
        -->
        <div id="listViewsReceived" onclick="PeopleMedia.Connect.goToViewsReceived();" class="listpagelinksarea1 ">
          <p><a href="javascript:;">Viewed Me</a></p>

              <!--<p id="starburstViewsReceivedCount" class="starlink" style=""><a href="#" id="listViewsReceivedCount">1</a><span></span></p>-->

        </div>
      </div>
    </div>
  </div>
  <div class="yescontentmiddlerow" id="ViewsListContent">
    <?php if (count($totalUserView) > 0): ?>
      <div class="inboxcontenttoprow2">
        <div class="inboxcontenttoprow2col1">
          <input name="" id="selectAllCheckBoxViews" value="" onclick="PeopleMedia.Connect.selectAllDeleteCheckBoxes('Views')" type="checkbox">
          <p><a href="#" onclick="PeopleMedia.Connect.clickSelectArea('Views')">Select All</a></p>
        </div>
        <div class="inboxcontenttoprow2col2"> <a title="Delete" class="button_style_send" href="#" onclick="PeopleMedia.Connect.deleteSelectedMembers('Views', 2, <?php echo $data['filter']; ?>, 1);">Delete</a> </div>
      </div>
      <?php
    else: echo $data['noRecord'];
    endif;
    ?>
    <div id="connectViewsMemberList">
      <?php
      $count = 0;
      foreach ($rsUserView as $item):
        ?>
        <div class="profilerepeat " id="connectItem<?php echo $count; ?>Views">
          <div class="profilerepeatcol0">
            <input name="<?php echo $item['user_id']; ?>" id="checkboxDelete<?php echo $count; ?>Views" class="deleteCheckboxViews" value="" onchange="PeopleMedia.Connect.selectSingleDeleteCheckBox('Views', <?php echo $count; ?>)" type="checkbox">
          </div>
          <div class="profilerepeatcol1 ">

            <div id="profileoverlayplace">
            </div>
            <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>" title="bighuggs1">
              <?php
              $link_img = FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif';
              if ($item['link_img'] != null)
                $link_img = FRONT_SITE_URL . 'www/uploads/photos/thumbs/thumb_' . $item['link_img'];
              else {
                $link_img = $item['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
              }
              ?>
              <img src="<?php echo $link_img; ?>" title="<?php echo $item['username']; ?>" class="userpic" border="0">
            </a>
          </div>
          <div class="profilerepeatcol2">
            <div class="profilerepeatcol2row1">
              <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>"><?php echo $item['username']; ?></a></p>
              <img title="Viewed" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/eyeicon.png">
              <p class="lightgraytext timestampcl">Viewed: <?php echo changedDateFormat($item['date_view'], 'd-m-Y'); ?></p>
            </div>


            <div class="profilerepeatcol2row2">

              <p><?php echo calculateYearOld($item['birthdate']); ?> | <?php echo $item['country_name']; ?>
              </p>
            </div>

            <div class="profilerepeatcol2row3">
              <p><span class="lightgraytext">A little about me: </span>
                <?php echo $item['greeting1']; ?></p>
            </div>

            <div class="profilerepeatcol2row4">

              <a href="javascript:void(0);" class="SaveToFavorites<?php echo $count; ?>Views" title="Save as Favorite" onclick="PeopleMedia.Connect.toggleFavorite(true, '<?php echo $item['user_id']; ?>', <?php echo $count; ?>, 'Views', 'connectviews')" style="<?php echo $item['user_favorited'] != null ? 'display:none' : 'display:inline'; ?>">
                <img title="Save as Favorite" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoriteicon.png" border="0"> 
              </a>
              <a href="javascript:void(0);" class="RemoveFromFavorites<?php echo $count; ?>Views" onclick="PeopleMedia.Connect.toggleFavorite(false, '<?php echo $item['user_id']; ?>', <?php echo $count; ?>, 'Views', 'connectviews')" title="Saved as Favorite" style="<?php echo $item['user_favorited'] == null ? 'display:none' : 'display:inline'; ?>">
                <img title="Saved as Favorite" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoritedicon.png" border="0">   
              </a>

              <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>"> <img title="Send a Message" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/messageicon.png" border="0"> </a> 
            </div>

          </div>

          <div class="profilerepeatcol3">
            <textarea maxlength="3000" id="connectInlineMessage<?php echo $count; ?>Views" class="connectWriteMessageTextArea" cols="" rows="">Write a quick message...</textarea>

            <a href="javascript:void(0);" id="SendMessageButtonLink" onclick="PeopleMedia.Connect.sendMessage('<?php echo $item['user_id']; ?>', <?php echo $count; ?>, 'Views', '<?php echo $item['username']; ?>', 2, <?php echo $data['filter']; ?>, 1, 'connectviews', 25, 'None');" class="button_style_send" title="Send">Send</a> </div>
          <div class="profilerepeatcol4"> <a href="javascript:void(0);" onclick="PeopleMedia.Connect.removeItem(<?php echo $count; ?>, 'Views', 'connectviews')" title="Delete View"><img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/hidebutton.png" class="hide1" border="0"></a> </div>
          <p class="clearfix">&nbsp;</p>
          <div class="popupshowblock" id="popupshowdelete<?php echo $count; ?>Views" style="display:none;">
            <div class="overlayplace">
              <div class="popupshapestyle deleteactionoverlay">
                <div class="largestclosebtn"> <a id="PopupBlockCloseButton" href="javascript:void(0);" title="Close" onclick="PeopleMedia.Connect.hideRemoveItemPopup(<?php echo $count; ?>, 'Views')" class="closebtn"><img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/largestclosebtn.png" border="0"></a> </div>
                <div class="blockcontent">
                  <h1>Are you sure you want to delete <span id="PopupBlockUsernameSpan">this View</span>?</h1>
                  <div class="sharecontentbuttonarea">
                    <p class="blocklinksbtn">
                      <a href="javascript:void(0);" onclick="PeopleMedia.Connect.deleteConnectItem('<?php echo $item['user_id']; ?>', <?php echo $count; ?>, 'Views', 2, <?php echo $data['filter']; ?>, 1)">Delete</a>
                      <a href="javascript:void(0);" onclick="PeopleMedia.Connect.hideRemoveItemPopup(<?php echo $count; ?>, 'Views')" class="button_style">No</a>
                    </p>
                  </div>
                </div>
              </div>
            </div>
            <div class="overlaywholescreen"></div>
          </div>

        </div>
        <?php
        $count++;
      endforeach;
      ?>
    </div>

    <div class="resultsloadingoverlay" id="LoadingResultsDiv" style="display:none">
      <div class="resultsloading bgcolor-main">
        <h1>
          Sending your message...</h1>
        <div class="loadinggraphic">
          <img src="<?php echo FRONT_SITE_URL; ?>www/images/images1/waitwheel.gif" alt="">
        </div>
        <p class="clearfix">
          &nbsp;</p>
      </div>
    </div>

  </div>

  <div class="bottomrow">

    <div id="paginationsearch" class="color-main">
      <div id="paginationViewsBottom">
        <?php echo $data['pagination']['htmlBottom']; ?>
      </div>
    </div>

  </div>

</div>